//
// Created by MikeChen on 2025/4/4.
//


#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main() {
    //strcpy字符串拷贝函数
    char str1[128] = "Hello";
    char str2[128] = "World!";
    //char str3[128] = "Hello!";
    //char str4[128] = "Hell";

    printf("str1:%lu\n",strlen(str1));
    printf("str2:%lu\n",strlen(str2));

    strcpy(str1,str2);//把str2拷贝到str1中，先清空再拷贝，不是直接覆盖
    printf("str1:%s\n",str1);

    system("read -rsp $'Press enter to continue...\\n'");
    return EXIT_SUCCESS;
}